package org.example.afiona.controller;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import org.example.afiona.common.VO.ResultVO;
import org.example.afiona.common.utils.ResultVOUtil;

/**
 * @Author: leo
 * @date: 2021/6/11
 */
public class CustomBlockHandler {

    public static ResultVO handleException(BlockException ex){
        return ResultVOUtil.error(405,"被限制了");
    }

}
